package com.lanou.demo;

import redis.clients.jedis.Jedis;

public class MessageReceiver {
    public static void main(String[] args) {
        Jedis jedis = new Jedis("172.16.18.111", 6379);

        jedis.subscribe(new MessageListener(),"item-add");

        jedis.close();
    }
}
